use Dosvid
go

IF NOT EXISTS(SELECT name
			  FROM master.dbo.syslogins 
			  WHERE name = 'WorkUser')
BEGIN
    CREATE LOGIN WorkUser WITH PASSWORD = 'DosvidAndKolj'
END
go

if not exists(SELECT 1
			  FROM [dbo].[sysusers]
			  where [name] = 'WorkUser')
begin
 CREATE USER WorkUser FOR LOGIN WorkUser
 EXEC sp_addrolemember N'db_owner', N'WorkUser'
end


 
 
